package com.chance.cc.crawler.prod.command.trigger.domain.news.zhihu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.zhihu.ZHSeriesArticleRealtimeCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @ClassName song
 * @Description TODO
 * @Author ding
 * @Date 2021/9/3 15:18
 * @Version 1.0
 * 知乎汽车板块
 **/
public class ZHSeriesArticleCrawlerSchedulerTrigger extends CommonCrawlerSchedulerTrigger {
    public static void main(String[] args) {
      //  publishIFengRealtimeScheduleTriggerInfoTest();
        publishIFengRealtimeScheduleTriggerInfo();
    }



    public static void publishIFengRealtimeScheduleTriggerInfo(){
        CrawlerJob crawlerJob = ZHSeriesArticleRealtimeCrawlerScheduleJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                ZHSeriesArticleRealtimeCrawlerScheduleJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 17 * * ?",
                "知乎汽车 车系板块 每天17点采集");
    }
    public static void publishIFengRealtimeScheduleTriggerInfoTest(){
        CrawlerJob crawlerJob = ZHSeriesArticleRealtimeCrawlerScheduleJob.crawlerScheduler();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                ZHSeriesArticleRealtimeCrawlerScheduleJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "知乎汽车 车系板块 每天两点采集");
    }
}
